package com.common.app.data.bean

import android.os.Parcelable
import com.common.app.R
import kotlinx.parcelize.Parcelize

@Parcelize
data class SearchHotWordListBean(
    var List: List<SearchHotWordBean>? = null,
) : Parcelable

@Parcelize
data class SearchHotWordBean(
    var Word: String? = null,//标题
    var JumpType: String? = null,//跳转类型
    var JumpData: String? = null,//跳转参数
    var TagType: Int = 0,// 0：无标签 1：热 2：新
) : Parcelable {

    fun getLabelResId(): Int {
        return if (TagType == 1) {
            R.drawable.icon_label_hot
        } else if (TagType == 2) {
            R.drawable.icon_label_new
        } else {
            0
        }
    }

}